#pragma once
#include "Core/Layer.h"

namespace Orange
{
    class ImGuiLayer : public Layer
    {
    public:
        ImGuiLayer();
        ~ImGuiLayer();

        void OnAttach() override;
        void OnDetach() override;

        virtual void OnEvent(Event &e) override;
        void SetBlockEvent(bool isEmit) { m_BlockEvent = isEmit; };

        void OnImGuiRender() override;
        void SetDarkThemeColors();
        void SetPrimaryThemeColors();
        void Begin();
        void End();

    private:
        float m_Time = 0.0;
        bool m_BlockEvent = true;
    };
}